package com.easyCms.base.web;

import java.io.PrintWriter;

import javax.servlet.http.HttpServletRequest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping(value = "/login")
public class LoginController {
	private static Logger logger = LoggerFactory.getLogger(LoginController.class);

	/*
	 * 注册页面
	 * 
	 */
	@RequestMapping(value = "/adminIndex")
	public String adminIndex(PrintWriter printWriter) {
		return "admin/adminIndexPage";
	}

	/*
	 * 登录页面
	 * 
	 */
	@RequestMapping(value = "/loginIndexPage")
	public String loginPage(PrintWriter printWriter) {
		return "login/loginPage";
	}

	/*
	 * 注册页面
	 * 
	 */
	@RequestMapping(value = "/registerIndexPage")
	public String registerPage(PrintWriter printWriter) {
		return "login/registerPage";
	}
	
	/**
	 * 创建用户
	 */
	@RequestMapping(value = "/createAdminUserPage", method = RequestMethod.GET)
	public String createAdminUserPage(HttpServletRequest request) {
		return "admin/createAdminUserPage";
	}

	

}
